﻿using PowerHub.MES.DTO.Crew.QueryDto;
using PowerHub.MES.DTO.ProductPlanning.QueryDTO;
using PowerHub.MES.Entities.Crew;
using PowerHub.MES.Entities.ProductPlanning;
using PowerHub.MES.ReturnEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.IRepository.IProductPlanning
{

    /// <summary>
    /// 产品BOM清单数据接口层
    /// </summary>
    public interface IProductPlanning_ProductBillDetialRepository
    {
        /// <summary>
        /// 获取产品BOM清单列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        //public Task<OperationPageResult<List<ProductPlanning_ProductBillDetial>>> GetProductPlanning_ProductBillDetialPageListAsync(QueryProductPlanning_ProductBillDetialDTO query);

        /// <summary>
        /// 根据id获取产品BOM清单列表
        /// </summary>
        /// <param name = "query" ></ param >
        /// < returns ></ returns >
        public Task<List<ProductPlanning_ProductBillDetial>> GetProductPlanning_ProductBillDetialListAsync(List<string>? ids,string? ProductBillId);

        /// <summary>
        /// 添加产品BOM清单
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> CreateProductPlanning_ProductBillDetialAsync(List<ProductPlanning_ProductBillDetial> query);

        /// <summary>
        /// 修改产品BOM清单
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> UpdateProductPlanning_ProductBillDetialAsync(ProductPlanning_ProductBillDetial query);

        /// <summary>
        /// 批量删除产品BOM清单
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> DeletionProductPlanning_ProductBillDetialAsync(List<string>? ids);


    }
}
